package Test3;

public class Color{
    private int red;
    private int green;
    private int blue;

    public Color(){

    }
    public Color(int r,int g,int b){
        this.setR(r);
        this.setG(g);
        this.setB(b);
    }
    public void setR(int v){
        if(v>=0&&v<=255){
            this.red=v;
        }
    }
    public void setG(int v){
        if(v>=0&&v<=255){
            this.green=v;
        }
    }
    public void setB(int v){
        if(v>=0&&v<=255){
            this.blue=v;
        }
    }
    public int getR(){
        return this.red;
    }
    public int getG(){
        return this.green;
    }
    public int getB(){
        return this.blue;
    }


}
